package model;

import java.util.Vector;

public class OrdenCompra {
	
	private int nroOC;
	private Vector<ItemOrdenCompra> itemsOrdenCompra;
	/**
	 * @return the nroOC
	 */
	public int getNroOC() {
		return nroOC;
	}
	/**
	 * @param nroOC the nroOC to set
	 */
	public void setNroOC(int nroOC) {
		this.nroOC = nroOC;
	}
	/**
	 * @return the itemsOrdenCompra
	 */
	public Vector<ItemOrdenCompra> getItemsOrdenCompra() {
		return itemsOrdenCompra;
	}
	/**
	 * @param itemsOrdenCompra the itemsOrdenCompra to set
	 */
	public void setItemsOrdenCompra(Vector<ItemOrdenCompra> itemsOrdenCompra) {
		this.itemsOrdenCompra = itemsOrdenCompra;
	}

	
	public OrdenCompra(int codMat,float cant) throws Exception{
		
		ItemOrdenCompra item = new ItemOrdenCompra(codMat,cant);
		this.itemsOrdenCompra = new Vector<ItemOrdenCompra>();
		this.itemsOrdenCompra.add(item);
		
	}
	
}
